package kr.co.dayve.site.management.dao;

import kr.co.dayve.site.domain.CommunityBoard;
import kr.co.dayve.site.domain.PhotoBoard;
import kr.co.dayve.site.domain.Report;
import kr.co.dayve.site.domain.Vote;

import java.util.List;

/**
 * 
 * @author John_Kim <johnkim@prompt.co.kr / Prompt, Inc.>
 *
 */
public interface PhotoBoardDao {
	public abstract List getBoardListBySearchword(PhotoBoard board);
    public abstract List getBoardListByNo(PhotoBoard board);
    public abstract String getTotalCountBySearchword(PhotoBoard board);
    public abstract String getTotalCountByNo(PhotoBoard board);
    public abstract String writeBoard(PhotoBoard board);
    public abstract String updateBoard(PhotoBoard board);
    public abstract String deleteBoard(PhotoBoard board);
    public abstract PhotoBoard getBoardByNo(String photo_board_no);

    public abstract String updateReplyCount(PhotoBoard board);
    public abstract String updateHitCount(PhotoBoard board);
    public abstract String updateVoteCount(PhotoBoard board);
    public abstract String updateNegativeCount(PhotoBoard board);
    public abstract String updateReportCount(PhotoBoard board);

    public abstract String checkDuplicateVote(Vote vote);
    public abstract String insertVoterToList(Vote vote);

    public abstract String photoBoardReport(Report report);
    public abstract String checkDuplicateReport(Report report);

    public abstract String updateBoardNotImage(PhotoBoard board);
}
